package com.zeen.wima.update;

/**
 * @author: Jacky
 * @date: 2010-09-27
 * @brief: 插件信息
 */
public class AppInfo {

	private String name = "";
	private String downloadPath;
	private boolean excuted = false;

	public boolean hasDownloaded() {
		return excuted;
	}

	public String getSetupPath() {
		return downloadPath;
	}

	public void setSetupPath(String path) {
		downloadPath = path;
	}

	public String getName() {
		return name;
	}

	private int version = -1;

	public int getVersion() {
		return version;
	}

	private String packageName = "";

	public String getPackageName() {
		return packageName;
	}

	private String url = "";

	public String getUrl() {
		return url;
	}

	private String desc = "";

	public String getDescription() {
		return desc;
	}

	private int size = 400000;

	public int getSize() {
		return size;
	}

	public AppInfo(String name, int version, String packageName) {
		this.name = name;
		this.version = version;
		this.packageName = packageName;
	}

	public AppInfo(String name, int version, String url, String packageName,
			String description, int size) {
		this.name = name;
		this.version = version;
		this.url = url;
		this.packageName = packageName;
		this.desc = description;
		this.size = size;
	}
}